package ae.pcfc.cldos.online.common.delegate.provider;

import ae.pcfc.cldos.online.common.ConstantsCommon.Steps;
import ae.pcfc.cldos.online.common.delegate.BaseDelegate;
import ae.pcfc.cldos.online.common.delegate.VisitVisaDelegate;
import ae.pcfc.cldos.online.common.exception.BadAppException;
import ae.pcfc.cldos.online.common.facade.VisitVisaFacade;
import ae.pcfc.cldos.online.common.vo.AppSaveResponseVO;
import ae.pcfc.cldos.online.common.vo.UserVO;
import ae.pcfc.cldos.online.common.vo.VisitVisaMainVO;

/**
 * 
 * @author akhader
 *
 */
public class VisitVisaDelegateImpl extends BaseDelegate implements VisitVisaDelegate {

	public AppSaveResponseVO submit(VisitVisaMainVO visitVisaMainVO)  throws Exception {
		return getServiceLocator().getFacadeService(VisitVisaFacade.class).submit(visitVisaMainVO);
	}
	
	public AppSaveResponseVO reSubmit(VisitVisaMainVO visitVisaMainVO, String appId)  throws Exception{
		return getServiceLocator().getFacadeService(VisitVisaFacade.class).reSubmit(visitVisaMainVO, appId);
	}
	
	public VisitVisaMainVO getVisitVisaDetailByAppId(String applicationId, UserVO userVO, Steps step) throws BadAppException{
		return getServiceLocator().getFacadeService(VisitVisaFacade.class).getVisitVisaDetailByAppId(applicationId,userVO,step);
	}

	/* (non-Javadoc)
	 * @see ae.pcfc.cldos.online.common.delegate.VisitVisaDelegate#getVisitVisaViewDtls(java.lang.String, ae.pcfc.cldos.online.common.vo.UserVO, ae.pcfc.cldos.online.common.ConstantsCommon.Steps)
	 */
	public VisitVisaMainVO getVisitVisaViewDtls(String applicationId, UserVO userVO, Steps step) throws BadAppException{
		return getServiceLocator().getFacadeService(VisitVisaFacade.class).getVisitVisaViewDtls(applicationId,userVO,step);
	}
}
